package com.javabean;

public class Student {
//    1.必须私有成员变量，并为每个成员变量都提供get set 方法
    private  String name;
    private  double score;

    //2.必须为类提供一个公开的无参构造器和有参构造器

    //    无参构造器
    public Student() {
    }

    //    有参构造器
    public Student(String name) {
        this.name = name;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }


}
